package com.chaodev.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


@ApiModel("角色信息")
public class Role {
    @ApiModelProperty("角色id")
    private String roleId;
    @ApiModelProperty("父级角色id")
    private Integer parentRoleId;
    @ApiModelProperty("角色名称")
    private String roleName;
    @ApiModelProperty("角色备注")
    private String roleDsc;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("创建人")
    private String createUser;
    @ApiModelProperty("区号")
    private String areaCode;
    @ApiModelProperty("包括自身的角色ID和所有的上级角色ID，以\",\"分隔")
    private String parentRoleIds;
    @ApiModelProperty("状态")
    private Integer state;
    @ApiModelProperty("角色分类")
    private Integer roleType;
    @ApiModelProperty("角色编码")
    private String code;
    @ApiModelProperty("角色首页")
    private String roleHomePage;

    public Integer getParentRoleId() {
        return parentRoleId;
    }

    public void setParentRoleId(Integer parentRoleId) {
        this.parentRoleId = parentRoleId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getRoleType() {
        return roleType;
    }

    public void setRoleType(Integer roleType) {
        this.roleType = roleType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRoleHomePage() {
        return roleHomePage;
    }

    public void setRoleHomePage(String roleHomePage) {
        this.roleHomePage = roleHomePage;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getParentRoleIds() {
        return parentRoleIds;
    }

    public void setParentRoleIds(String parentRoleIds) {
        this.parentRoleIds = parentRoleIds;
    }


    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        if ("".equals(roleName) || roleName == null) {
            this.roleName = "";
        } else {
            this.roleName = roleName;
        }
    }

    public String getRoleDsc() {
        return roleDsc;
    }

    public void setRoleDsc(String roleDsc) {
        if ("".equals(roleDsc) || roleDsc == null) {
            this.roleDsc = "";
        } else {
            this.roleDsc = roleDsc;
        }
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        if ("".equals(createTime) || createTime == null) {
            this.createTime = "";
        } else {
            this.createTime = createTime;
        }
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        if ("".equals(createUser) || createUser == null) {
            this.createUser = "";
        } else {
            this.createUser = createUser;
        }
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        if ("".equals(areaCode) || areaCode == null) {
            this.areaCode = "";
        } else {
            this.areaCode = areaCode;
        }

    }

    @Override
    public String toString() {
        return "Role{" +
                "roleId='" + roleId + '\'' +
                ", parentRoleId='" + parentRoleId + '\'' +
                ", roleName='" + roleName + '\'' +
                ", roleDsc='" + roleDsc + '\'' +
                ", createTime='" + createTime + '\'' +
                ", createUser='" + createUser + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", parentRoleIds='" + parentRoleIds + '\'' +
                '}';
    }
}

